﻿using System;
using System.Collections.Generic;
using DTO;
using DAO;
using System.Data;
using System.Data.SqlClient;

namespace BUS
{
    public class BUSChuyenLop
    {
        public static DataTable LietKeLop(object p)
        {
            try
            {
                return DAOChuyenLop.LietKeLop(p);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static DataTable LietKeKhoiLop()
        {
            try
            {
                DataTable dtb = DAOChuyenLop.LietKeLookupEditData("sp_LietKeKhoiLop");
                return dtb;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static object DanhSachHocSinh(DTOHocSinh hocsinh)
        {
            try
            {
                return DAOChuyenLop.DanhSachHocSinh(hocsinh);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }


        public static int ChuyenLop(DTOHocSinh hocsinh)
        {
            try
            {
                int kq = DAOChuyenLop.CapNhatLopHocSinh(hocsinh);
                return kq;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
